<template>
  <!--info -->
  <a-card class="bg-secondary">
    <div class="flex justify-between items-center h-14">
      <div class="truncate">
        <div class="text-xl font-semibold truncate text-primary">
          {{ store.currentSuit.mc || '套餐名称' }}
        </div>
        <div v-if="templateType !== 4" class="mt-2 name text-sm text-gray-700">
          <div v-if="!isArmy">
            <template v-if="store.currentSuit.enablePackagePricin">
              <span>套餐价 </span>
              <span>￥{{ store.currentSuit.tcPrice || 0 }}</span>
            </template>
            <template v-else>
              <span>明细价 </span>
              <span>￥{{ store.currentSuit.tcOriginalPrice || 0 }}</span>
            </template>
          </div>
        </div>
      </div>
      <div v-if="templateType === 2">
        <LabelValue label="分类" :value="store.currentSuit.setType" />
        <LabelValue label="来源" class="mt-2" :value="store.currentSuit.setSource" />
      </div>
      <div v-if="templateType === 2">
        <LabelValue label="功用" :value="store.currentSuit.setEffect" />
        <LabelValue label="主治" class="mt-2" :value="store.currentSuit.indications" />
      </div>
      <div v-if="templateType === 2">
        <LabelValue label="加减" :value="store.currentSuit.addSub" />
        <LabelValue label="说明" class="mt-2" :value="store.currentSuit.memo" />
      </div>
      <div>
        <div class="w-60 text-left">创建人： {{ store.currentSuit.cjrName || '-' }}</div>
        <div class="w-60 text-left mt-2">创建时间： {{ store.currentSuit.cjsj || '-' }}</div>
      </div>
    </div>
  </a-card>
</template>
<script setup>
import useDoctorStore from '../store'

const store = useDoctorStore()
defineProps({
  templateType: {
    description: '模板类型 0-处置 1-处方 2-协定方 3-就诊套餐 4-病历',
    type: Number,
    default: null
  }
})
const isArmy = getSystemConfig('NAVYHIS_MODE') === '1' //军用系统
</script>
